<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\customelements\CustomElements */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="custom-elements-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'token')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'set_id')->textInput() ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'eid')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'required')->textInput() ?>

    <?= $form->field($model, 'instruct')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'evalue')->textarea(['rows' => 6]) ?>

    <?= $form->field($model, 'numtype')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'datetype')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'layout')->textInput() ?>

    <?= $form->field($model, 'imgnum')->textInput() ?>

    <?= $form->field($model, 'numbertype')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'img')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'imglink')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'alignstyle')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'pictureshow')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'subtitle')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'snumber')->textInput() ?>

    <?= $form->field($model, 'stype')->textInput() ?>

    <?= $form->field($model, 'titlealignstyle')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'sort')->textInput() ?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
